<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        输出100-200之间所有的质数
    </div>
    <script>
        
        for ( var i = 2 ; i <= 200 ; i ++ ) {
            var a = parseInt(i/2);
            var num = 0 ;
            for ( var b = 2 ; b <= a ; b ++ ) {
                if ( i % b == 0 ) {
                    num ++ ;
                }
            }
            if ( num == 0 ) {
                console.log(i);
            }
        }
    </script>
</body>
</html>